import request from '@/utils/request'

// 查询快捷菜单列表
export function listSysUserQuick(query) {
  return request({
    url: '/system/sysUserQuick/list',
    method: 'get',
    params: query
  })
}

// 查询我的快捷菜单列表
export function listMineQuick(query) {
  return request({
    url: '/system/sysUserQuick/mine/list',
    method: 'get',
    params: query
  })
}

// 查询快捷菜单详细
export function getSysUserQuick(id) {
  return request({
    url: '/system/sysUserQuick/' + id,
    method: 'get'
  })
}

// 新增快捷菜单
export function addSysUserQuick(data) {
  return request({
    url: '/system/sysUserQuick',
    method: 'post',
    data: data
  })
}

// 修改快捷菜单
export function updateSysUserQuick(data) {
  return request({
    url: '/system/sysUserQuick',
    method: 'put',
    data: data
  })
}

// 删除快捷菜单
export function delSysUserQuick(id) {
  return request({
    url: '/system/sysUserQuick/' + id,
    method: 'delete'
  })
}
